package com.lvmama.client.rhino;


import com.lvmama.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient("rhino-web-service")
@RequestMapping("${server.servlet.context-path}")
public interface VisitorClient {


    @RequestMapping(value = "/visitors/visitorChartData", method = RequestMethod.POST)
    Result<Map<String, Object>> visitorChartData(@RequestParam("chooseTime")String chooseTime, @RequestParam("type")String type);

    @RequestMapping(value = "/visitors/visitorPlatformData", method = RequestMethod.POST)
    Result<Map<String, Object>> visitorPlatformData(@RequestParam("chooseTime")String chooseTime, @RequestParam("type")String type, @RequestParam("platform")String platform);

    @RequestMapping(value = "/visitors/visitorChannelData", method = RequestMethod.POST)
    Result<Map<String, Object>> getChanenlData(@RequestParam("channelJson")String channelJson);

}
